package com.itheima.controller;


import com.itheima.common.SubjectResult;
import com.itheima.service.HmSubjectsService;
import com.itheima.service.QuestionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/subjects")
public class QuestionSubjectsController {
    @Autowired
    private QuestionsService questionsService;
    @Autowired
    private HmSubjectsService subjectsService;

    //基础题库列表
    @GetMapping("/simple")
    public List<SubjectResult> SimpleList(){
        List<SubjectResult> list =subjectsService.SimpleList();
        return list;
    }

}
